package com.example.springbott.mapper;

import com.example.springbott.bean.MarketComment;
import com.example.springbott.bean.MarketCommentExample;
import com.example.springbott.vo.WxCommentList;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface MarketCommentMapper {
    long countByExample(MarketCommentExample example);

    int deleteByExample(MarketCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketComment record);

    int insertSelective(MarketComment record);

    List<MarketComment> selectByExample(MarketCommentExample example);

    MarketComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByExample(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByPrimaryKeySelective(MarketComment record);

    int updateByPrimaryKey(MarketComment record);

    int countComment(Integer valueId,Integer type);

    int countPic(Integer valueId,Integer type);

    ArrayList<WxCommentList> selectByValueId(Integer valueId);

    Integer[] selectIdByValueId(Integer valueId);

}